#include "loginwindow.h"
#include "mainwindow.h"
#include "mainwindow.h"
#include "sqlhelper.h"
#include <QApplication>

MainWindow* MainWindow::ts;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

//#define DEBUG

#ifdef DEBUG
    SqlHelper::getInstance().deleteDataBase();
    SqlHelper::getInstance().openDatabase();
    SqlHelper::getInstance().createTables();
    SqlHelper::getInstance().fillInPreliminaryData();
#endif

    MainWindow w;
    w.show();

    return a.exec();
}
